package com.yoi.service.impl;

import com.yoi.bean.Book;
import com.yoi.bean.Ordermessage;
import com.yoi.mapper.OrdermessageMapper;
import com.yoi.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
    public class OrderServiceImpl implements OrderService {

        @Autowired
        private OrdermessageMapper orderMapper;


    @Override
    public List<com.yoi.bean.Book> getBook() {
        return null;
    }

    @Override
    public List<Ordermessage> AllOrder() {
       return orderMapper.AllOrder() ;
    }

    @Override
    public List<Ordermessage> AllOrderByRecv(String Recv) {
        return orderMapper.AllOrderByRecv(Recv);
    }

    @Override
    public void insertOrder(Ordermessage order) {
        orderMapper.insert(order);
    }

    @Override
    public void insertOrderTest2(Ordermessage order) {
        orderMapper.insertToTest2(order);
    }

    @Override
    public Ordermessage getMessage(Integer id) {
       return  orderMapper.selectByPrimaryKey(id);
    }



}

